package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SySelfBookingRefundOrder;
import com.ruoyi.system.dto.SelfServiceOrderQueryDTO;
import com.ruoyi.system.mapper.SySelfBookingRefundOrderMapper;
import com.ruoyi.system.service.SySelfBookingRefundOrderService;
import com.ruoyi.system.util.StoreIdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 退款订单 - 服务实现类
 */
@Service
public class SySelfBookingRefundOrderServiceImpl extends ServiceImpl<SySelfBookingRefundOrderMapper, SySelfBookingRefundOrder> implements SySelfBookingRefundOrderService {
    @Autowired
    private StoreIdUtils storeIdUtils;
    @Override
    public IPage<SySelfBookingRefundOrder> getList(SelfServiceOrderQueryDTO orderDTO) {
        orderDTO.setStoreId(storeIdUtils.getStoreId());
        return this.baseMapper.getAll(new Page<>(orderDTO.getPageNum(), orderDTO.getPageSize()), orderDTO);

    }
}
